import { request } from '@/http/request/alova'

export const getDictByType = (params: {dictType: string}) => {
  return request.Get('/system/dict-data/getByDictType', {params})
}
// export const updateFileNoDomain = (data: any) => {
//   // return request.upload({ url: '/infra/file/uploadNoDomain', data })
// }
// export const uploadTempFile = (data: any) => {
//   return request.Post('/infra/file/uploadTempFile', data )
// }

export const fileUploadNoDomainUrl = `${import.meta.env.VITE_APP_PROXY_PREFIX}/infra/file/uploadNoDomain`
export const uploadTempFileUrl = `${import.meta.env.VITE_APP_PROXY_PREFIX}/infra/file/uploadTempFile`